<?php
$res = fopen('./test-phphulp.txt', 'a');
fwrite($res, $_SERVER['REQUEST_METHOD'] . ' ' . date('r') . ' ' . md5(print_r($_REQUEST, true)) ."\r\n");
fclose($res);
header('Content-Type: text/html; charset=UTF-8');
ob_start();
include 'test.php';
$content = ob_get_clean();
echo '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">';
echo '<img src="">';
echo utf8_decode($content);
?>